message(STATUS "Configuring easyLogger...")
aux_source_directory(./src LIB_SRCS)			# 添加当前目录下所有的源文件
aux_source_directory(./port LIB_SRCS)			# 添加当前目录下所有的源文件
aux_source_directory(./plugins/file LIB_SRCS)
# aux_source_directory(./plugins/file/elog_file.c LIB_SRCS)			# 添加当前目录下所有的源文件
# set(SOURCES  ./plugins/file)
# set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fpermissive")  #设置c++的编译选项

# 设置包含的目录
include_directories(./inc ./plugins/file)

add_library (easyLogger SHARED ${LIB_SRCS} )				# 当前目录下的文件生成一个链接库
# 先调用get_property将这个property读取到一个变量中(variable)INCLUDE_OPENCL 
get_property(BIN GLOBAL PROPERTY "BIN_DIR" ) 
# 显示INCLUDE_OPENCL 
MESSAGE(STATUS "easyloggerBIN :${BIN}")
install(TARGETS easyLogger 
ARCHIVE DESTINATION ${BIN} 
LIBRARY DESTINATION ${BIN} 
)